Skip to content

Add Qwen3-VL text and image embeddings - #665

Merged
davidkoski merged 1 commit into
ml-explore:mainfrom
aleroot:alessio/qwen3-vl-embedding-hidden-states
Dec 4, 2026
Merged

davidkoski merged 1 commit into
ml-explore:mainfrom
aleroot:alessio/qwen3-vl-embedding-hidden-states

Conversation

@aleroot

@aleroot aleroot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Proposed changes

Adds Qwen3VLEmbedding to MLXVLM for normalized text, image, and mixed-input vectors. Reuses the existing Qwen3-VL backbone and processor, preserves terminal-token pooling, processes batches one item at a time, and rejects context overflow. Also fixes special-token handling during vision-placeholder expansion.

Checklist

Put an x in the boxes that apply.

  • I have read the CONTRIBUTING document
  • I have run pre-commit run --all-files to format my code / installed pre-commit prior to committing changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have updated the necessary documentation (if needed)

AI usage

  • I have read this PR description in full and approve it as my own, and it
    accurately describes the code changes.
  • AI usage disclosure:

@aleroot

aleroot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

@davidkoski I have rebased on main and adapted Qwen3-VL embeddings to the shared multimodal embedding design from #692 (recently merged). The model now conforms to MultimodalEmbedding and is registered with the extensible factory, including support for component exclusions and a separate tokenizer directory...

@davidkoski davidkoski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks good, just needs a rebase to resolve conflicts. Thank you!

@aleroot
aleroot force-pushed the alessio/qwen3-vl-embedding-hidden-states branch from 33ae53b to 1d5f0b1 Compare December 4, 2026 20:09
@aleroot

aleroot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor Author

Change looks good, just needs a rebase to resolve conflicts. Thank you!

Done, thanks

@davidkoski
davidkoski merged commit 18713a4 into ml-explore:main Dec 4, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants